//
//  BaseTableViewCell.swift
//  XiaoJingMallSwift
//
//  Created by beisheng03 on 2017/7/23.
//  Copyright © 2017年 beisheng. All rights reserved.
//

import UIKit

class BaseTableViewCell: UITableViewCell {
    
       override init(style: UITableViewCellStyle, reuseIdentifier: String?) {
        super.init(style: style, reuseIdentifier: reuseIdentifier)
        selectionStyle = .none
        contentView.backgroundColor = UIColor.viewBgGrey()

    }
    
    required init?(coder aDecoder: NSCoder) {
        super.init(coder: aDecoder)
        selectionStyle = .none
    }

    override func awakeFromNib() {
        super.awakeFromNib()
        selectionStyle = .none
        contentView.backgroundColor = UIColor.viewBgGrey()
        
        

    }
    
    
    
    class func identifer() -> String{
        
        let tempString = NSStringFromClass(self as AnyClass)
        
        
        let classStr = tempString.components(separatedBy: ".").last
        
        
        return classStr!
    }
    
    

    override func setSelected(_ selected: Bool, animated: Bool) {
        super.setSelected(selected, animated: animated)

        // Configure the view for the selected state
    }

}
